package com.hx.springbootmybstis.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: 若若叶
 * @date: 2021/9/28 19:00 FileName: User Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "user")
@Accessors(chain = true) // user.setUsername("aa").setAge(20).setUid(null);
public class User {
  // @TableId()
  private Integer uid;
  private String username;
  private Integer age;
}
